// 用户行为分析
export default [
  {
    path: "/onlineWork",
    redirect: "/onlineWork",
    alwaysShow: false, // will always show the root menu
    name: "OnlineWork",
    meta: {
      title: "在线作业",
      icon: "icon-diaochaowenjuan",
      roles: ["admin"], // you can set roles in root nav
    },
    children: [
      {
        path: "/onlineWork",
        component: () => import("@/views/OnlineWork/OnlineWork.vue"),
        name: "OnlineWork",
        meta: {
          title: "在线作业",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "/addOnlineWork",
        component: () => import("@/views/OnlineWork/AddOnlineWork.vue"),
        name: "AddOnlineWork",
        meta: {
          title: "课后作业",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
    ],
  },
];
